]> dgit.raspbian.org Git - gnome-shell.git/commit
ScreenShield: fix positioning of background with multimonitor
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 21 Feb 2013 22:32:25 +0000 (23:32 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 25 Feb 2013 13:46:40 +0000 (14:46 +0100)
commitd5e647a191b23c8a153223976e720b64c336d638
treeb6e5f75bf75ab08232f4f27bcb193dc1cb9c8356
parenta1d37617a857b8bf5422db43fcea852488d370a0
ScreenShield: fix positioning of background with multimonitor

Previously, we would create one StBin per monitor, but each was positioned
at 0,0 and sized as the screen, so they would overlap and draw the box shadows
on top of the other backgrounds.
Instead, we need to size appropriately the bin, and then we need to position
the actual MetaBacgroundActor at 0,0, so add a flag to BackgroundManager
for this.
Also, get rid of MetaBackgroundGroup, they do nothing because the screenshield
is not a descendant of the MetaWindowGroup and because the widget in between
blocks the propagation of the visible region. At the same time, use a
widget, not a bin, because StBin requires you to set .child, not call add_child().

https://bugzilla.gnome.org/show_bug.cgi?id=694394
js/ui/background.js
js/ui/screenShield.js